package co.edu.unal.franquicias.mastercard.domain;

import java.util.Date;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class DebitCardTransaction {
	
	private DebitCard card;
	private Float amount;
	private Date date;
	private ValidationStatus validationStatus;
	
	public DebitCardTransaction() {
	}
	
	public DebitCardTransaction(DebitCard card, Float amount, Date date, ValidationStatus validationStatus) {
		this.card = card;
		this.amount = amount;
		this.date = date;
		this.validationStatus = validationStatus;
	}
	public DebitCardTransaction(DebitCard card, Float amount, Date date) {
		this.card = card;
		this.amount = amount;
		this.date = date;
		this.validationStatus = ValidationStatus.UNKNOWN;
	}
	
	@XmlElement
	public Float getAmount() {
		return amount;
	}
	public void setAmount(Float amount) {
		this.amount = amount;
	}
	
	@XmlElement
	public DebitCard getCard() {
		return card;
	}
	public void setCard(DebitCard card) {
		this.card = card;
	}
	
	@XmlElement
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	
	@XmlElement
	public ValidationStatus getValidationStatus() {
		return validationStatus;
	}

	public void setValidationStatus(ValidationStatus validationStatus) {
		this.validationStatus = validationStatus;
	}
	
}
